if (!caryr) {
    caryr = {};
}
caryr.auth = {};
caryr.auth.treeData = [
    /******** 产品 ***********/
    {
        "category": "product",
        "icon": " fa fa-folder category_product",
        "text": "产品权限",
        "id": "product",
        "state": {
            "selected": false,
            "opened": false
        },
        "children": [{
            "text": "创建",
            "id": "product_create",
            "state": {
                "selected": false
            },
            "children": [{
                'text': '店铺内数据',
                'id': 'product_create_shop',
                'state': {
                    'selected': true
                },
                'icon': 'fa fa-file icon-state-success'
            }, {
                'text': '其他店铺数据',
                'id': 'product_create_othershop',
                'state': {
                    'selected': false
                },
                'icon': 'fa fa-file icon-state-success'
            }]
        }, {
            "text": "修改",
            "id": "product_update",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "product_delete",
            "text": "删除",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "text": "浏览",
            "id": "product_read",
            "state": {
                "selected": false,
                "opened": false
            },
            "children": [{
                'text': '店铺内数据',
                'id': 'product_read_shop',
                'state': {
                    'selected': true
                },
                'icon': 'fa fa-file icon-state-success'
            }, {
                'text': '其他店铺数据',
                'id': 'product_read_othershop',
                'state': {
                    'selected': false
                },
                'icon': 'fa fa-file icon-state-success'
            }, {
                'text': '本人创建数据',
                'id': 'product_read_selfcreate',
                'state': {
                    'selected': false
                },
                'icon': 'fa fa-file icon-state-success'
            }, {
                'text': '其他人创建数据',
                'id': 'product_read_othercreate', //Access data
                'state': {
                    'selected': false
                },
                'icon': 'fa fa-file icon-state-success'
            }]
        }]
    },
    /*{
        "text": "产品对接",
        "category": "product",
        "icon": " fa fa-folder category_product ",
        "id": "productMapping",
        "state": {
            "selected": false,
            "opened": false,
        },
        "opened": false,
        "children": [{
            "text": "创建",
            "icon": "fa fa-file icon-state-success",
            "id": "productMapping_create",
            "state": {
                "selected": false
            }
        }, {
            "text": "导入",
            "icon": "fa fa-file icon-state-success",
            "id": "productMapping_import",
            "state": {
                "selected": false
            }
        }, {
            "text": "修改",
            "id": "productMapping_update",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "productMapping_delete",
            "text": "删除",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "text": "浏览",
            "state": {
                "selected": false
            },
            "id": "productMapping_read",
        },]
    },
    {
        "text": "产品组合",
        "category": "product",
        "icon": " fa fa-folder category_product ",
        "id": "productComb",
        "state": {
            "selected": false,
            "opened": false,
        },
        "opened": false,
        "children": [{
            "text": "创建",
            "icon": "fa fa-file icon-state-success",
            "id": "productComb_create",
            "state": {
                "selected": false
            }
        }, {
            "text": "修改",
            "id": "productComb_update",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "productComb_delete",
            "text": "删除",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "text": "浏览",
            "state": {
                "selected": false
            },
            "id": "productComb_read",
            "icon": "fa fa-file icon-state-success"
        },]
    },*/
    /******** 库存 ***********/
    {
        "text": "库存",
        "category": "stock",
        "icon": " fa fa-folder category_stock ",
        "id": "stock",
        "state": {
            "selected": false,
            "opened": false
        },
        "opened": false,
        "children": [{
            "text": "创建",
            "icon": "fa fa-file icon-state-success",
            "id": "stock_create",
            "state": {
                "selected": false
            }
        }, {
            "text": "修改",
            "id": "stock_update",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "stock_confirm",
            "text": "审批",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "stock_delete",
            "text": "删除",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "text": "浏览",
            "state": {
                "selected": false
            },
            "id": "stock_read",
            "icon": "fa fa-file icon-state-success"
        }, {
            "text": "浏览修改记录",
            "state": {
                "selected": false
            },
            "id": "stockHis_read",
            "icon": "fa fa-file icon-state-success"
        }]
    },
    /*{
        "text": "组合库存",
        "category": "stock",
        "icon": " fa fa-folder category_stock ",
        "id": "productCombStock",
        "state": {
            "selected": false,
            "opened": false
        },
        "opened": false,
        "children": [{
            "text": "浏览",
            "state": {
                "selected": false
            },
            "id": "productCombStock_read",
            "icon": "fa fa-file icon-state-success"
        }]
    },
    {
        "text": "物料",
        "category": "stock",
        "icon": " fa fa-folder category_stock ",
        "id": "material",
        "state": {
            "selected": false,
            "opened": false
        },
        "opened": false,
        "children": [{
            "text": "创建",
            "icon": "fa fa-file icon-state-success",
            "id": "material_create",
            "state": {
                "selected": false
            }
        }, {
            "text": "修改",
            "id": "material_update",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "material_delete",
            "text": "删除",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "text": "浏览",
            "state": {
                "selected": false
            },
            "id": "material_read"
        }]
    },
    {
        "text": "物料组合",
        "category": "stock",
        "icon": " fa fa-folder category_stock ",
        "id": "materialComb",
        "state": {
            "selected": false,
            "opened": false
        },
        "opened": false,
        "children": [{
            "text": "创建",
            "icon": "fa fa-file icon-state-success",
            "id": "materialComb_create",
            "state": {
                "selected": false
            }
        }, {
            "text": "修改",
            "id": "materialComb_update",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "materialComb_delete",
            "text": "删除",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "text": "浏览",
            "state": {
                "selected": false
            },
            "id": "materialComb_read"
        }]
    },*/
    /******** 销售订单 ***********/
    {
        "text": "销售订单",
        "id": "salesOrder",
        "category": "salesOrder",
        "icon": " fa fa-folder category_salesOrder ",
        "state": {
            "selected": false,
            "opened": false
        },
        "opened": false,
        "children": [{
            "text": "浏览",
            "id": "salesOrder_read",
            "state": {
                "selected": false,
                "opened": false
            },
            "children": [{
                'text': '本人创建数据',
                'id': 'salesOrder_read_selfcreate',
                'state': {
                    'selected': false
                },
                'icon': 'fa fa-file icon-state-success'
            }, {
                'text': '其他人创建数据',
                'id': 'salesOrder_read_othercreate', //Access data
                'state': {
                    'selected': false
                },
                'icon': 'fa fa-file icon-state-success'
            }, {
                "id": "salesOrder_export",
                "text": "批量导出",
                "state": {
                    "selected": false
                },
                "icon": "fa fa-file icon-state-success"
            }]
        }, {
            "text": "更新状态",
            "id": "salesOrder_update_status",
            "state": {
                "selected": false,
                "opened": false
            },
            "children": [{
                "id": "salesOrder_submit",
                "text": "交易确认",
                "state": {
                    "selected": false
                },
                "icon": "fa fa-file icon-state-success"
            }, {
                "id": "salesOrder_packing",
                "text": "包装验货",
                "state": {
                    "selected": false
                },
                "icon": "fa fa-file icon-state-success"
            }, {
                "id": "salesOrder_deliver",
                "text": "快递发货",
                "state": {
                    "selected": false
                },
                "icon": "fa fa-file icon-state-success"
            }, {
                "id": "salesOrder_signoff",
                "text": "快递签收",
                "state": {
                    "selected": false
                },
                "icon": "fa fa-file icon-state-success"
            }, {
                "id": "salesOrder_settle",
                "text": "结算金额",
                "state": {
                    "selected": false
                },
                "icon": "fa fa-file icon-state-success"
            }, {
                "id": "salesOrder_close",
                "text": "关闭交易",
                "state": {
                    "selected": false
                },
                "icon": "fa fa-file icon-state-success"
            }]
        }, {
            "text": "创建",
            "icon": "fa fa-file icon-state-success",
            "id": "salesOrder_create",
            "state": {
                "selected": false
            }
        }, {
            "id": "salesOrder_import",
            "text": "批量导入",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "text": "编辑",
            "id": "salesOrder_update",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "salesOrder_delete",
            "text": "删除",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }]
    },
    /*{
        "text": "采购订单",
        "id": "orderPurch",
        "state": {
            "selected": false,
            "opened": false
        },
        "opened": false,
        "children": [{
            "text": "浏览",
            "state": {
                "selected": false
            },
            "id": "orderPurch_read",
            "icon": "fa fa-file icon-state-success"
        }]
    },*/
    /******** 用户 ***********/
    {
        "category": "user",
        "icon": " fa fa-folder category_user ",
        "text": "用户",
        "id": "user",
        "state": {
            "selected": false,
            "opened": false,
        },
        "opened": false,
        "children": [{
            "text": "创建",
            "id": "user_create",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "text": "修改",
            "id": "user_update",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "user_delete",
            "text": "删除",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "text": "浏览",
            "state": {
                "selected": false
            },
            "id": "user_read",
            "icon": "fa fa-file icon-state-success"
        }]
    },
    {
        "category": "user",
        "icon": " fa fa-folder category_user ",
        "text": "用户角色",
        "id": "userRole",
        "state": {
            "selected": false,
            "opened": false
        },
        "opened": false,
        "children": [{
            "text": "创建",
            "icon": "fa fa-file icon-state-success",
            "id": "userRole_create",
            "state": {
                "selected": false
            }
        }, {
            "text": "修改",
            "id": "userRole_update",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "userRole_delete",
            "text": "删除",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }, {
            "id": "userRole_read",
            "text": "浏览",
            "state": {
                "selected": false
            },
            "icon": "fa fa-file icon-state-success"
        }]
    }
];